package com.zf.apartment.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zf.apartment.mapper.PropertyRoomdataMapper;
import com.zf.apartment.domain.PropertyRoomdata;
import com.zf.apartment.service.IPropertyRoomdataService;

/**
 * 房间属性Service业务层处理
 *
 * @author rxf
 * @date 2024-10-09
 */
@Service
public class PropertyRoomdataServiceImpl extends ServiceImpl<PropertyRoomdataMapper, PropertyRoomdata> implements IPropertyRoomdataService {
    @Autowired
    private PropertyRoomdataMapper propertyRoomdataMapper;

    /**
     * 查询房间属性
     *
     * @param propertyRoomDataId 房间属性主键
     * @return 房间属性
     */
    @Override
    public PropertyRoomdata selectPropertyRoomdataByPropertyRoomDataId(Long propertyRoomDataId) {
        return propertyRoomdataMapper.selectPropertyRoomdataByPropertyRoomDataId(propertyRoomDataId);
    }

    /**
     * 查询房间属性列表
     *
     * @param propertyRoomdata 房间属性
     * @return 房间属性
     */
    @Override
    public List<PropertyRoomdata> selectPropertyRoomdataList(PropertyRoomdata propertyRoomdata) {
        return propertyRoomdataMapper.selectPropertyRoomdataList(propertyRoomdata);
    }

    /**
     * 新增房间属性
     *
     * @param propertyRoomdata 房间属性
     * @return 结果
     */
    @Override
    public int insertPropertyRoomdata(PropertyRoomdata propertyRoomdata) {
            return propertyRoomdataMapper.insertPropertyRoomdata(propertyRoomdata);
    }

    /**
     * 修改房间属性
     *
     * @param propertyRoomdata 房间属性
     * @return 结果
     */
    @Override
    public int updatePropertyRoomdata(PropertyRoomdata propertyRoomdata) {
        return propertyRoomdataMapper.updatePropertyRoomdata(propertyRoomdata);
    }

    /**
     * 批量删除房间属性
     *
     * @param propertyRoomDataIds 需要删除的房间属性主键
     * @return 结果
     */
    @Override
    public int deletePropertyRoomdataByPropertyRoomDataIds(Long[] propertyRoomDataIds) {
        return propertyRoomdataMapper.deletePropertyRoomdataByPropertyRoomDataIds(propertyRoomDataIds);
    }

    /**
     * 删除房间属性信息
     *
     * @param propertyRoomDataId 房间属性主键
     * @return 结果
     */
    @Override
    public int deletePropertyRoomdataByPropertyRoomDataId(Long propertyRoomDataId) {
        return propertyRoomdataMapper.deletePropertyRoomdataByPropertyRoomDataId(propertyRoomDataId);
    }

    @Override
    public List<PropertyRoomdata> findPropertyRoomdataList(PropertyRoomdata propertyRoomdata) {
        return propertyRoomdataMapper.findPropertyRoomdataList(propertyRoomdata);
    }
}